#include "stl.h"
#include "linkedlist.h"
using namespace LinkedList;
#include "solution.h"

int main(int argc, char *argv[]){
    vector<int> testcases[] = {
        { 1,2,3,4 },
        {},
        {1},
    };
    Solution sln;
    for(auto&t:testcases){
        vector<ListNode> list;
        auto head = Link(t, &list);
        print("before=", head, "\n")
        print("after:", sln.swapPairs(head), "\n\n")
    }
    
    print("\n------ main exit ------\n")
    return 0;
}
